<!DOCTYPE html>
<html>
<meta charset="utf-8">
<head th:include="include::header"></head>
<body class="gray-bg">
	<div class="wrapper wrapper-content animated fadeInRight">
		<div class="row">
			<div class="col-sm-12">
                <div class="ibox float-e-margins">
                    <div class="ibox-content">
                        <form class="form-horizontal m-t" id="signupForm">
                        
                           <div class="form-group" style="display: none;">
                                <label class="col-sm-3 control-label">菜单类型：</label>
                                <div class="col-sm-8">
                                    <label class="radio-inline">
					                <input type="radio" checked="checked" value="0" id="optionsRadios0" name="type">目录</label>
					                <label class="radio-inline">
					                <input type="radio" value="1" id="optionsRadios1" name="type">菜单</label>
					                <label class="radio-inline">
					                <input type="radio" value="2" id="optionsRadios2" name="type">按钮</label>
                                </div>
                            </div>
                            
                            <div class="form-group">
                                <label class="col-sm-3 control-label">菜单类型：</label>
                                <div class="col-sm-8">
                                     <p class="form-control-static" >
                                     <span id="menu_type" class="label">按钮</span>
                                     </p>
                                </div>
                            </div>
                            
                            <div class="form-group">
                                <label class="col-sm-3 control-label">上级菜单：</label>
                                <div class="col-sm-8">
                                    <input th:value="${pname}" readonly="readonly" class="form-control valid" type="text" aria-required="true" aria-invalid="false" >
                                    <input type="hidden" th:value="${obj.parentId}" id="parentId" name="parentId">
                                    <input type="hidden" th:value="${obj.menuId}" id="menuId" name="menuId">
                                </div>
                            </div>
                            
                            <div class="form-group">
                                <label class="col-sm-3 control-label">菜单名称：</label>
                                <div class="col-sm-8">
                                    <input id="name" name="name" th:value="${obj.name}" class="form-control valid" type="text" aria-required="true" aria-invalid="false" >
                                </div>
                            </div>
                            <div class="form-group" id="menu_perms">
                                <label class="col-sm-3 control-label">菜单标识：</label>
                                <div class="col-sm-8">
                                    <input id="perms" name="perms" th:value="${obj.perms}" class="form-control valid" type="text" aria-required="true" aria-invalid="true" >
                                </div>
                            </div>
                             <div class="form-group" id="menu_url">
                                <label class="col-sm-3 control-label">菜单地址：</label>
                                <div class="col-sm-8">
                                    <input id="url" name="url" th:value="${obj.url}" class="form-control valid" type="text" aria-required="true" aria-invalid="true" >
                                </div>
                            </div>
                             <div class="form-group">
                                <label class="col-sm-3 control-label">菜单序号：</label>
                                <div class="col-sm-8">
                                    <input id="orderNum" name="orderNum" th:value="${obj.orderNum}" class="form-control valid" type="text" aria-required="true" aria-invalid="true" >
                                </div>
                            </div>
                             <div class="form-group">
                                <label class="col-sm-3 control-label">菜单图标：</label>
                                <div class="col-sm-6">
                                    <input id="icon" readonly="readonly" th:value="${obj.icon}" name="icon" class="form-control valid" type="text" aria-required="true" aria-invalid="true" >
                                </div>
                                <input class="btn btn-warning" id="ico-btn" onclick="addIco()" type="button" value="选择图标">
                            </div>
                            <div class="form-group">
                                <div class="col-sm-8 col-sm-offset-3">
                                    <button class="btn btn-primary" type="submit">提交</button>
                                </div>
                            </div>
                        </form>
                    </div>
                </div>
            </div>
        </div>
		</div>
	</div>
	<div th:include="include :: footer"></div>
	<script type="text/javascript" th:inline="javascript">var type = [[${obj.type}]];</script>
	<script type="text/javascript" src="/js/business/system/menu/edit.js"></script>
</body>

</html>
